package com.ccbooks.listener.bookCatalog;

import com.ccbooks.view.BookCatalogView;

import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;

public class LvCatalogOnItemClickListener implements OnItemClickListener {

	private BookCatalogView bcv;
	
	public LvCatalogOnItemClickListener(BookCatalogView bcv){
		this.bcv = bcv;
	}
	
	@Override
	public void onItemClick(AdapterView<?> listView, View view, int position, long id) {
		// TODO Auto-generated method stub
		bcv.setResult(bcv.items.get(position).pageIndex);
		bcv.finish();
	}

}
